hackerrank ruby currying solution

visit shbcf.ru